import React from 'react'
import MinusIcon from "../../../../../../../res/images/web/shared/btn／minus@2x.png";
import MinusIconActive from "../../../../../../../res/images/web/shared/btn／minus_selected@2x.png"
import PlusIcon from "../../../../../../../res/images/web/shared/btn／add@2x.png";
import './GiftCount.css'
import CountDisplay from "./CountDisplay/CountDisplay";

const GiftCount = props => {

    const {
        changeTotal,
        total,
        title,
    } = props


    const itemCount = (
        <div className='flex-space-between-align-center'>
            <p>
                {title ? title: '赠送数量'}
            </p>
            <CountDisplay
                total={total}
                changeTotal={changeTotal}
            />
        </div>
    )

    return itemCount
}

export default GiftCount
